// 这个模块会暴露给host项目给使用
let wrap = document.createElement("div");

let list = [
  { name: "小张", age: 19 },
  { name: "小张2", age: 19 },
  { name: "小张3", age: 19 },
  { name: "小张4", age: 19 },
  { name: "小张5", age: 19 },
];

list.forEach((item) => {
  let p = document.createElement("p");
  p.innerHTML = item.name;
  wrap.appendChild(p);
});

export const addList = () => {
  document.body.appendChild(wrap);
};
